import request from '@/utils/request'

// 查询业务列表列表
export function listServiceType(query) {
  return request({
    url: '/sms/serviceType/list',
    method: 'get',
    params: query
  })
}
// 查询部门下拉树结构
export function serviceTypeTree() {
  return request({
    url: '/sms/serviceType/treeselect',
    method: 'get'
  })
}
// 查询业务列表详细
export function getServiceType(id) {
  return request({
    url: '/sms/serviceType/' + id,
    method: 'get'
  })
}

// 新增业务列表
export function addServiceType(data) {
  return request({
    url: '/sms/serviceType',
    method: 'post',
    data: data
  })
}

// 修改业务列表
export function updateServiceType(data) {
  return request({
    url: '/sms/serviceType',
    method: 'put',
    data: data
  })
}

// 删除业务列表
export function delServiceType(id) {
  return request({
    url: '/sms/serviceType/' + id,
    method: 'delete'
  })
}

// 导出业务列表
export function exportServiceType(query) {
  return request({
    url: '/sms/serviceType/export',
    method: 'get',
    params: query
  })
}
